<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../style/css/layout.css" rel="stylesheet" type="text/css" />
<link href="../style/css/font.css" rel="stylesheet" type="text/css" />
<title>Personal Index</title>
</head>

<body>
<?php
	@session_start();
	$companyId_Visited = 0;
	//判断是否是企业用户访问
	if(!isset($_SESSION["Company_Id"]) || $_SESSION["Company_Id"] == null)
	{
		echo '<script>alert("请登录再进呐~~ ");window.location.href="../pages/login.php";</script>';
		exit();
	}
	else
	{
		//是企业用户,企业的id在Session里
		$companyId_Visited = (int)$_SESSION["Company_Id"];
	}
	include("../class/company.class.php");
	$class_user = new Company();
	require("../inc/top.php");
?>

<div class="mainpage_contain">
	<div class="mainpage_nav">
    	<div class="mainpage_title"><?php echo $class_user->GetCompanyName($companyId_Visited)." ";?>企业的主页</div>
        <div class="mainpage_tab_contain">
            <?php  include("inc/tabs.php"); ?>
        </div>
    </div>
    
    <div class="mainpage_body">
    	<div class="mainpage_left">
        	<div class="padding_10 fs20px">编辑公司简介</div>
            <form method="post" action="">
            	<div class="padding_10">
            		<textarea name="company_info" class="company_cng_textaera"></textarea>
                </div>
                <div class="padding_10 mg_l_r_10" align="right"><input class="btn_yellow" value="修改" /></div>
            </form>
		</div>
        <div class="mainpage_right">
        	<?php  require("inc/left_intro.php"); ?>
        </div>
        <div class="clear"></div>
    </div>
</div>

<?php
	require("../inc/copyright.php");
?>
</body>
</html>